<?php

namespace addons\TfFutures;

use addons\TfFutures\common\config\Bootstrap;

/**
 * Class Addon
 * Yii::$app->debris->config($fildName) 获取单个配置信息 $fildName 为你的配置标识
 * Yii::$app->debris->configAll()  获取全部配置信息
 * @package addons\TfFutures
 */
class AddonConfig
{
    /**
     * k线分组
     **/
    public $stockpre = 'rf_addon_tf_futures_symbol';

    /**
     * 配置信息
     * @var array
     */
    public $info = [
        'name' => 'TfFutures',
        'title' => '永安国际',
        'brief_introduction' => '永安国际',
        'description' => '永安国际',
        'author' => 'tianfu',
        'version' => '0.1',
    ];

    /**
     * 引导文件
     * 设置后系统会在执行插件控制器前执行
     * @var Bootstrap
     */
    public $bootstrap = '';

    /**
     * 可授权权限
     * 注意：采用Yii2的路由命名方式
     * 例子：array(
     *          'index/index' => '首页',
     *          'cate-index/index' => '分类首页',
     *          'cate-index/first-data' => '分类数据',
     *        )
     * @var array
     */
    public $authItem = [
        'backend' => [
            'order-reason/index' => '挂单管理',
            'member/index' => '会员资产', 
            'member/excel' => '会员excel导出',
            'member/gift' => '会员赠金',
//            'member-lever/index' => '会员杠杆合约',
            'member-lever/status' => '会员通过/驳回',
            'member-lever/delete' => '会员删除',
            'setup/index' => '爆仓比管理',
            'setup/edit' => '爆仓比设置',
            'order/index' => '订单管理',
            'order-reason/index' => '挂单管理',
            'order/excel' => '订单excel导出',
//            'lever/index' => '杠杆管理',
//            'lever/ajax-edit' => '杠杆创建/编辑',
//            'lever/delete' => '杠杆删除',
            'symbol/index' => '产品管理',
            'symbol/ajax-edit' => '产品产品创建/编辑',
            'symbol/delete' => '产品删除',
            'symbol/risk' => '产品风控',
            'symbol/set-risk' => '产品设置划点',
            'symbol/auto' => '产品风控',
            'symbol-cate/index' => '产品分类',
            'symbol-cate/ajax-edit' => '产品编辑/创建',
            'symbol-cate/delete' => '产品删除',
            'manager/log' => '佣金提现日志',
            'manager/withdraw'=>'佣金我要提现',
            'manager/index'=>'佣金体现管理',
            'manager/status' => '佣金通过/驳回',
             'identity/index' => '审核身份证',
            'identity/ajax-edit' => '通过驳回',
            'bankinfo/index' => '银行卡管理',
            'bankinfo/status' => '银行卡通过驳回',
            'bankinfo/delete' => '银行卡删除',
//            'card/index' => '商户银行卡管理',
//            'card/delete' => '商户银行卡删除',
//            'card/update-edit' => '商户银行卡编辑',
            'complaint/index'=>'投诉建议',
            'logs/index'=>'日志管理',
            'article-single/index' => '单页管理',
            'article-single/edit' => '单页编辑',
            'article-single/ajax-update' => '单页状态修改',
            'article-single/delete' => '单页删除',
            'article/index' => '文章首页',
            'article/edit' => '文章编辑',
            'article/ajax-update' => '文章状态修改',
            'article/hide' => '文章删除',
            'article-cate/index' => '文章分类首页',
            'article-cate/ajax-edit' => '文章分类编辑',
            'article-cate/ajax-update' => '文章分类状态修改',
            'article-cate/delete' => '文章分类删除',
//            'article-tag/index' => '文章标签首页',
//            'article-tag/ajax-edit' => '文章标签编辑',
//            'article-tag/ajax-update' => '文章标签状态修改',
//            'article-tag/delete' => '文章标签删除',
//            'adv/index' => '幻灯片首页',
//            'adv/edit' => '幻灯片编辑',
//            'adv/ajax-update' => '幻灯片状态修改',
//            'adv/delete' => '幻灯片删除',
//            'article/recycle' => '回收站',
//            'article/show' => '回收站还原',
//            'article/delete' => '回收站删除',
        ],
        'frontend' => [],
        'wechat' => [],
        'api' => [],
    ];

    /**
     * 参数配置
     * @var bool
     */
    public $isSetting = FALSE;

    /**
     * 钩子
     * @var bool
     */
    public $isHook = FALSE;

    /**
     * 规则管理
     * @var bool
     */
    public $isRule = FALSE;
    public $isCover = FALSE;

    /**
     * 类别
     * @var string
     * [
     *      'plug'      => "功能插件",
     *      'business'  => "主要业务",
     *      'customer'  => "客户关系",
     *      'activity'  => "营销及活动",
     *      'services'  => "常用服务及工具",
     *      'biz'       => "行业解决方案",
     *      'h5game'    => "H5游戏",
     *      'other'     => "其他",
     * ]
     */
    public $group = 'business';

    /**
     * 微信接收消息类别
     * @var array
     * 例如 : ['image','voice','video','shortvideo']
     */
    public $wechatMessage = [];

    /**
     * 后台菜单
     * 例如
     * public $menu = [
     *  [
     *      'title' => '基本表格',
     *      'route' => 'curd-base/index',
     *      'icon' => ''
     *   ]
     * ]
     * @var array
     */
    public $menu = [
        [
            'title' => '会员资产',
            'route' => 'member/index',
            'icon' => '',
        ],
        [
            'title' => '爆仓比管理',
            'route' => 'setup/index',
            'icon' => '',
        ],
//        [
//            'title' => '杠杆合约',
//            'route' => 'member-lever/index',
//            'icon' => '',
//        ],
        [
            'title' => '订单管理',
            'route' => 'order/index',
            'icon' => '',
        ],
                [
                    'title' => '挂单管理',
                    'route' => 'order-reason/index',
                    'icon'  => '',
                ],
//        [
//            'title' => '杠杆管理',
//            'route' => 'lever/index',
//            'icon' => '',
//        ],
        [
            'title' => '产品管理',
            'route' => 'symbol/index',
            'icon' => '',
        ],
        [
            'title' => '产品风控',
            'route' => 'symbol/risk',
            'icon' => '',
        ],
        [
            'title' => '产品分类',
            'route' => 'symbol-cate/index',
            'icon' => '',
        ],
        [
            'title' => '佣金提现',
            'route' => 'manager/log',
            'icon' => '',
        ],
         [
            'title' => '审核身份证',
            'route' => 'identity/index',
            'icon' => '',
        ],
        [
            'title' => '银行卡管理',
            'route' => 'bankinfo/index',
            'icon' => '',
        ],
//        [
//            'title' => '商户银行卡管理',
//            'route' => 'card/index',
//            'icon' => '',
//        ],
//        [
//            'title' => '投诉建议',
//            'route' => 'complaint/index',
//            'icon' => '',
//        ],
        [
            'title' => '日志管理',
            'route' => 'logs/index',
            'icon' => '',
        ],
        [
            'title' => '单页管理',
            'route' => 'article-single/index',
            'icon' => 'fa fa-pencil-square-o',
        ],
        [
            'title' => '文章管理',
            'route' => 'article/index',
            'icon' => 'fa fa-list',
        ],
        [
            'title' => '文章分类',
            'route' => 'article-cate/index',
            'icon' => '',
        ],
//        [
//            'title' => '文章标签',
//            'route' => 'article-tag/index',
//            'icon' => 'fa fa-tags',
//        ],
//        [
//            'title' => '幻灯片',
//            'route' => 'adv/index',
//            'icon' => 'fa fa-file-image-o',
//        ],
//        [
//            'title' => '回收站',
//            'route' => 'article/recycle',
//            'icon' => 'fa fa-trash-o',
//        ],
    ];

    /**
     * 同menu上
     * @var array
     */
    public $cover = [];

    /**
     * 保存在当前模块的根目录下面
     * 例如 public $install = 'Install';
     * 安装SQL,只支持php文件
     * @var string
     */
    public $install = 'Install';

    /**
     * 卸载SQL
     * @var string
     */
    public $uninstall = 'UnInstall';

    /**
     * 更新SQL
     * @var string
     */
    public $upgrade = 'Upgrade';
}
            